﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CloudDcPc.Entity
{
    public class MyMenu
    {
        private int print_pos;

        public int Print_pos
        {
            get { return print_pos; }
            set { print_pos = value; }
        }

        private string suffix;

        public string Suffix
        {
            get { return suffix; }
            set { suffix = value; }
        }


        public string NiceSuffix  //有中括号的后缀，称之为nicesuffix~~
        {
            get {
                if (suffix == null || suffix=="")
                    return "";
                else
                    return "[" + suffix + "]";
                
            }
            
        }

        private string xz;

        public string Xz
        {
            get { return xz; }
            set { xz = value; }
        }

        private int menutype;

        public int MenuType
        {
            get { return menutype; }
            set { menutype = value; }
        }

        public string TextPrint_pos
        {
            get
            {
                switch (Print_pos)
                {
                    case 1: return "厨房普通打印机1";
                    case 4: return "厨房普通打印机2";
                    case 2: return "厨房海鲜打印机";
                    case 5: return "厨房冷菜打印机";
                    case 3: return "收银台打印机";
                    default: return "未知";
                }
            }
            set
            {
                switch (value)
                {
                    case "厨房普通打印机1": Print_pos = 1; break;
                    case "厨房普通打印机2": Print_pos = 4; break;
                    case "厨房海鲜打印机": Print_pos = 2; break;
                    case "厨房冷菜打印机": Print_pos = 5; break;
                    case "收银台打印机": Print_pos = 3; break;
                }
            }
        }


        private int position;

        public int Position
        {
            get { return position; }
            set { position = value; }
        }


        public string TextEnough
        {
            get
            {
                return Enough == 1 ? "有货" : "无货";
            }
            set
            {
                if (value == "有货")
                    Enough = 1;
                if (value == "无货")
                    Enough = 0;
            }
        }

        private string countInTg;

        public string CountInTg
        {
            get { return countInTg == null ? "1" : countInTg; }
            set { countInTg = value; }
        }


        private int enough;

        public int Enough
        {
            get { return enough; }
            set { enough = value; }
        }

        private string unit;

        public string Unit
        {
            get { return unit; }
            set { unit = value; }
        }

        private int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        private string food_num;

        public string Food_num
        {
            get { return food_num; }
            set { food_num = value; }
        }
        private string food_name;

        public string Food_name
        {
            get { return food_name; }
            set { food_name = value; }
        }
        private float price;

        public float Price
        {
            get { return price; }
            set { price = value; }
        }
        private string taste;

        public string Taste
        {
            get { return taste; }
            set { taste = value; }
        }
        private string type;

        public string Type
        {
            get { return type; }
            set { type = value; }
        }

    }
}
